package javaClassDesign.classObject.cloneable;

public class ImplementandoCloneable {

	public static void main(String args[]) {
		A a = new A();
		A aa = (A) a.clone();

		B b = new B();
		B bb = (B) b.clone();
	}
}

class A implements Cloneable {

	public Object clone() {
		return new A();

	}
}

class B extends A {

}
